<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSchoolsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        /**
         * 幼儿园表
         */
        Schema::create('schools', function (Blueprint $table) {
            $table->integer('id', true);
            $table->string('school_name')->nullable()->comment('幼儿园名称');
            $table->string('school_code')->nullable()->comment('幼儿园编号');
            $table->string('police_station_id')->nullable()->comment('幼儿园所属公安局');
            $table->integer('upper_limit')->nullable()->comment('幼儿园报名人数上限');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('schools');
    }
}
